//
//  YCUserDefault.h
//  YouChi
//
//  Created by sam on 15/5/25.
//  Copyright (c) 2015年 Guangzhou QuicklyANT Information Technology Guangzhou QuicklyANT Information Technology Guangzhou QuicklyANT Information Technology Co.,LTD. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UserModel.h"
extern NSString *YCUserDefaultUpdate;
extern NSString *YCUserDefaultLogin;

#define USER_DEFAULT [MCUserDefault standardUserDefaults]

@interface MCUserDefault : NSObject



+ (MCUserDefault *)standardUserDefaults;
- (void)updateCurrentUser:(UserModel *)login;
//- (NSArray *)getAccountAndPassword;

//- (NSString *)loadPasswordForUser:(UserModel *)login;
//- (NSString *)loadPasswordForLoginId:(NSString *)loginId;

//- (BOOL )savePassword:(NSString *)psw forUser:(UserModel *)login;
//- (BOOL )savePassword:(NSString *)psw forLoginId:(NSString *)loginId;

+ (NSString *)currentToken;
//+ (NSString *)currentLoginId;
+ (NSNumber *)currentId;
+ (NSNumber *)currentShopId;
- (BOOL)saveUser:(UserModel *)login;
- (BOOL)saveUser;


+(BOOL)isLogin;

- (BOOL)removeCurrentUser;
+ (UserModel *)currentUser;


/*


- (YCLoginM *)loadUser;


- (BOOL)addCurrentUser:(YCLoginM *)login forLoginId:(NSString *)loginId;
- (BOOL)addCurrentUser:(YCLoginM *)login;


- (BOOL)isCurrentUserValid;
- (BOOL)isMoneyUserValid;





- (NSString *)lastLoginId;
- (BOOL)setlastLoginId:(NSString *)loginId;

- (NSArray *)allLoginIds;
- (BOOL)removeLoginId:(NSString *)loginId;
 */
@end
